//
//  CellDetailKindModel.m
//  MarianasTrench
//
//  Created by 王晓晨 on 16/3/18.
//  Copyright © 2016年 王爵. All rights reserved.
//

#import "CellDetailKindModel.h"

@implementation CellDetailKindModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray *tempArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            self.cellArrDetailModel = [[CellArrDetailKindModel alloc] init];
            [self.cellArrDetailModel setValuesForKeysWithDictionary:dic];
            [tempArr addObject:_cellArrDetailModel];
        }
        self.list = [NSMutableArray arrayWithArray:tempArr];
    }

}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {

}

@end
